import axios from "axios";
let baseUrl = window.apiUrl1;
const GetUrl = (url, data) => {
    const headers = {}
    return axios.get(url, {
        params: data,
        headers
    }).then((res) => {
        return Promise.resolve(res.data)
    })
}

const PostUrl = (url, data) => {
    const headers = { 'content-type': 'application/json;charset=UTF-8' }
   return axios.post(url, data, {
        transformRequest: data => JSON.stringify(data),
        headers
    }).then((res) => {
        return Promise.resolve(res)
    })
}
/**
 * 招商信息
 */
export const querLeaseStatistics=() => GetUrl(baseUrl + 'lease/querLeaseStatistics', {});
/**
 * 招商企业分类
 */
export const querLeaseTypeStatistics=()=> GetUrl(baseUrl + 'lease/querLeaseTypeStatistics', {});
/**
 * 招商记录信息
 */
export const queryFmLeaseList=() => GetUrl(baseUrl + 'enterprise/queryEnterpriseList?pageIndex=1&pageSize=10', {});
// export const queryFmLeaseList=() => GetUrl(baseUrl + 'Xnzq-1.5.2.RELEASE/lease/queryFmLeaseList?pageIndex=1&pageSize=12', {});
